#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<assert.h>
char* my_strcpy(char* dest, const char* str)
{
	assert(dest && str);
	const char* cp = str;
	while (*str != '\0')
	{
		*dest = *str;
		dest++;
		str++;
	}
	return (char*)cp;
}
int main()
{
	char arr1[100] = { ' ' };
	char arr2[] = "abcdef";
	my_strcpy(arr1, arr2);
	printf("%s\n", arr1);
	return 0;
}